package com.financial.service.platbalancepay.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author zhaopengjun
 * @Description //平台管理相关feign调用
 * @Date 13:35 2019/8/24
 * @Param
 * @return
 **/
@Service
@FeignClient(name = "financial-base-management")
public interface PlatformPayFegin {
    
    /**
     * @Author zhaopengjun
     * @Description //根据平台应用名称获取id
     * @Date 13:34 2019/8/24
     * @Param 
     * @return 
     **/
    @RequestMapping(value = "/financialPlatfromConfig/getPlatfromId", method = RequestMethod.GET)
    int getPlatfromId(@RequestParam("platfromAppname") String platfromAppname);
    
    /**
     * @Author zhaopengjun
     * @Description //根据支付通道类型获取id
     * @Date 13:41 2019/8/24
     * @Param 
     * @return 
     **/
    @RequestMapping(value = "/financialPayConfig/getChannelsId",method = RequestMethod.GET)
    int getChannelsId(@RequestParam("payType") String payType);

  /*  @RequestMapping(value = "/financialPaydetailsConfig/getPayBusinessPram",method = RequestMethod.POST)
    Map<String,Object> getPayBusinessPram(@RequestParam("platfromId") String platfromId , @RequestParam("channelsId")String channelsId);*/

    //够样优店-银盛支付-环境配置参数
    @RequestMapping(value = "/financialPaydetailsConfig/getYSBusiness", method = RequestMethod.GET)
    String getYSBusiness(@RequestParam("platfromId")String platfromId, @RequestParam("channelsId") String channelsId);
}
